package service;

import dao.IdeaDao;
import util.StringUtil;
import entity.Idea;

public class IdeaService {

	private IdeaDao dao=new IdeaDao();
	
	public void save(String title,String content){
		
		Idea idea=new Idea();
		//User user=new User();
		//String userId=StringUtil.getUUID();
		idea.setId(StringUtil.getUUID());
		idea.setContent(content);
		idea.setTitle(title);
		idea.setProject_id("1");
		idea.setUser_id("1");
		
		dao.save(idea);
		
	}
}
